import {$get,$post,$delet,$put} from '@/utils/request.js'
// 获取用户列表
export const $list = async () => {
    let ret = await $get('/auth/user/all')
    return ret
}
// 获取一个账户
export const $getOne = async (params) => {
    let ret = await $post('/auth/user/pageList',params)
    return ret
  }
    // 添加角色
    export const $add = async (params)=>{
        let ret = await $post('/auth/enroll/user',params)
        return ret
      }
// 修改用户
export const $update = async (params)=>{
    let ret = await $put('/auth/user/update',params)
    return ret
  }
  
// // 删除
// export const $delete = async (params)=>{
//   let ret = await $post('/auth/user/deleteByIds',params)
//   return ret
// }